#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2021/12/18 13:14
    Desc  :
--------------------------------------
"""
from common.enums import AbstractBaseEnum


class OperateLogModelTypeEnums:
    """操作日期模型类型"""
    PERSON_ADD = AbstractBaseEnum(key = 101, value = '新增用户')
    PERSON_EDIT = AbstractBaseEnum(key = 102, value = '编辑用户')
    PERSON_DELETE = AbstractBaseEnum(key = 103, value = '删除用户')
    PERSON_REGISTER_OPT = AbstractBaseEnum(key = 104, value = '用户审核')
    APPLICATION_ADD = AbstractBaseEnum(key = 105, value = '新增应用')
    APPLICATION_EDIT = AbstractBaseEnum(key = 106, value = '编辑应用')
    APPLICATION_DELETE = AbstractBaseEnum(key = 107, value = '删除应用')
    MENU_ADD = AbstractBaseEnum(key = 108, value = '新增菜单')
    MENU_EDIT = AbstractBaseEnum(key = 109, value = '编辑菜单')
    MENU_DELETE = AbstractBaseEnum(key = 110, value = '删除菜单')
    ROLE_ADD = AbstractBaseEnum(key = 111, value = '新增角色')
    ROLE_EDIT = AbstractBaseEnum(key = 112, value = '编辑角色')
    ROLE_DELETE = AbstractBaseEnum(key = 113, value = '删除角色')


class RequestMethodEnum:
    """请求方法"""
    GET = AbstractBaseEnum(key = 101, value = 'GET')
    POST = AbstractBaseEnum(key = 102, value = 'POST')
    PUT = AbstractBaseEnum(key = 103, value = 'PUT')
    PATCH = AbstractBaseEnum(key = 104, value = 'PATCH')
    HEADER = AbstractBaseEnum(key = 105, value = 'HEADER')


class ParamTypeEnum:
    """请求参数类型"""
    QUERY = AbstractBaseEnum(key = 101, value = 'QUERY')
    REST = AbstractBaseEnum(key = 102, value = 'REST')
    FORM_DATA = AbstractBaseEnum(key = 103, value = 'FORM_DATA')
    X_WWW_FORM_URLENCODED = AbstractBaseEnum(key = 104, value = 'X_WWW_FORM_URLENCODED')
    JSON = AbstractBaseEnum(key = 105, value = 'JSON')
    TEXT = AbstractBaseEnum(key = 106, value = 'TEXT')
    JSON_SCRIPT = AbstractBaseEnum(key = 107, value = 'JSON_SCRIPT')
    HTML = AbstractBaseEnum(key = 108, value = 'HTML')
    XML = AbstractBaseEnum(key = 109, value = 'XML')
    BINARY = AbstractBaseEnum(key = 110, value = 'BINARY')


class ParamValueTypeEnum:
    """参数值类型"""
    TEXT = AbstractBaseEnum(key = 101, value = 'TEXT')
    FILE = AbstractBaseEnum(key = 102, value = 'FILE')


class TagColorEnum:
    """tag颜色枚举"""
    PINK = AbstractBaseEnum(key = 101, value = 'pink')
    RED = AbstractBaseEnum(key = 102, value = 'red')
    ORANGE = AbstractBaseEnum(key = 103, value = 'orange')
    GREEN = AbstractBaseEnum(key = 104, value = 'green')
    CYAN = AbstractBaseEnum(key = 105, value = 'cyan')
    BLUE = AbstractBaseEnum(key = 106, value = 'blue')
    PURPLE = AbstractBaseEnum(key = 107, value = 'purple')
    GEEKBLUE = AbstractBaseEnum(key = 108, value = 'geekblue')
    MAGENTA = AbstractBaseEnum(key = 109, value = 'magenta')
    VOLCANO = AbstractBaseEnum(key = 110, value = 'volcano')
    GOLE = AbstractBaseEnum(key = 111, value = 'gold')
    LIME = AbstractBaseEnum(key = 112, value = 'lime')


class TagColorRGBEnum:
    """tag颜色枚举"""
    PINK = AbstractBaseEnum(key = 107, value = '#f50')
    RED = AbstractBaseEnum(key = 106, value = '#2db7f5')
    ORANGE = AbstractBaseEnum(key = 105, value = '#87d068')
    GREEN = AbstractBaseEnum(key = 104, value = '#108ee9')
    CYAN = AbstractBaseEnum(key = 103, value = '#CCCCFF')
    BLUE = AbstractBaseEnum(key = 102, value = '#CCFFFF')
    PURPLE = AbstractBaseEnum(key = 101, value = '#99CCCC')
